/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package nemeanshop;

import java.util.ArrayList;

/**
 *
 * @author havardaxelsen
 */
public class Productlist {
    
    private ArrayList<Product> p = new ArrayList<Product>();
    private NemeanShop ns;

    public Productlist(NemeanShop ns) {
        this.ns = ns;
        p = ns.getAllProducts();
        
    }
   
    public Productlist(){
        this.ns = new NemeanShop();
        p = ns.getAllProducts();
        
    }
    
    public ArrayList<Product> getProductList(){
        return p;
        
    }
    
    public int getProductListSize(){
        
        return p.size();
    }
    
    
    
}
